﻿@namespace SE.PO.CInterface.Web.Pages.DB.Site
@using SE.PO.CInterface.Web.Utils
@using SE.PO.CInterface.Web.Clients
@inject SiteClient Client
@using SE.PO.CInterface.Web.Pages.DB.Components
@using System.ComponentModel.DataAnnotations
@using SE.PO.CInterface.Enums

<Form
    Model="@_model"
    Style="margin-top: 8px;"
    OnFinish="OnFinish"
    OnFinishFailed="OnFinishFailed"
    @ref="@Form">
    <FormItem Label="下级SCID" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;"  Placeholder="SC编码，下级SCID" @bind-Value="@context.ScId"/>
    </FormItem>
    <FormItem Label="站点编号" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;"  Placeholder="站点编号，主键，按照集团统一资源库模型编制" @bind-Value="@context.Id"/>
    </FormItem>
    <FormItem Label="站点名称" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;"  Placeholder="站点名称" @bind-Value="@context.SiteName"/>
    </FormItem>
    <FormItem Label="站点描述" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;"  Placeholder="站点描述" @bind-Value="@context.SiteDesc"/>
    </FormItem>
    <FormItem Label="经度" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;"  Placeholder="经度" @bind-Value="@context.Longitude"/>
    </FormItem>
    <FormItem Label="纬度" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;"  Placeholder="纬度" @bind-Value="@context.Latitude"/>
    </FormItem>
    <FormItem Label="局站特征" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
        <EnumSelect Style="width: 220px;"    TEnum="NodeType?"  @bind-Value="@context.NodeFeatures" />
    </FormItem>
    <FormItem Label="局站类型" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
        <EnumSelect Style="width: 220px;"   TEnum="SiteType?" @bind-Value="@context.SiteType" />
    </FormItem>
    <FormItem Label="区域" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
        <SelectArea Model="@_model"></SelectArea>
    </FormItem>
</Form>
